<?php

namespace App\Http\Resources;

use App\Http\Responses\Resource;

class Site extends Resource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request
     * @return array
     */
    public function toArray($request)
    {


        return [
            'id' => $this->id,
            'link' => $this->link,
            'cover' => $this->cover,
            'created_at' => $this->created_at->toDateTimeString()
        ];
    }
}
